#pragma once
#include "..\GameEngine\GameEngine.h"

class CMissile : public TGameObject, public ICollidable, public IInteractive
{
    TGDKSprite *spr;
public:
    CMissile(TGameObject* owner, int x, int y)
    {
        spr = new TGDKSprite(*ResourceManager::GetResource("Missile"), NULL, x, y);
        TGDKSprite *ownerSpr = owner->GetMainSprite();
        spr->SetAngle( ownerSpr->GetAngle() );
        spr->CenterOffset();
    }
    virtual ~CMissile()
    {
        delete spr;
    }

    virtual TGDKSprite* GetMainSprite();

    virtual void OnDraw();

    virtual void GetCollision( TGameObject *obj );

    virtual void DoAction();

};
